
<?php

include 'source/config.php';
include 'source/soap.fnc.php';

?>

<!DOCTYPE html>
<html>
<head>
<title>浙江联通淘号吧-输入用户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link href="css/unicom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- content 320 -->
<div class="uni_content">
	<!-- header 100% -->
	<div class="header">
		<img src="images/banner_02.jpg" alt="logo" class="logo_style">
		<a href="javascript:history.back();"><div class="header_divA"></div></a>
	</div>
	<!-- content -->
	<div class="content">
		<p class="font_3">请详细填写以下信息，确认您的订单</p>
		<div class="button_yuan button_margin2 content_div adCol1">机主姓名<input name="name" id="name" maxLength="10"  class="input_style"></div>
		<div class="button_yuan button_margin2 content_div adCol1" style='display:none;'>情侣姓名<input name="name2" id="name2" maxLength="10"  class="input_style"></div>
		<div class="button_yuan button_margin2 content_div adCol1">机主身份证号<input name="sfcode" id="sfcode" maxLength="18"  class="input_style"></div>
		<div class="button_yuan button_margin2 content_div adCol1" style='display:none;'>情侣身份证号<input name="sfcode2" id="sfcode2" maxLength="18"  class="input_style"></div>
		<p class="font_3" >入网当月资费</p>
		<ul >
			<li class="button_yuan button_margin2 ul_li"><div class="clearfix4"><span class="font_style1">全月开通</span><span class="adCol1">&nbsp;&nbsp;扣全月租，享受全部的套餐量</span></div><div id="img0" class="img_gou_mar"><img src="images/gou.png" alt="logo" class="img_gou"></div></li>
			<li class="button_yuan button_margin2 ul_li"><div class="clearfix4"><span class="font_style1">半月开通</span><span class="adCol1">&nbsp;&nbsp;收取半月租，套餐量减半</span></div><div id="img1" class="img_gou_mar" style="display:none;"><img src="images/gou.png" alt="logo" class="img_gou"></div></li>
			<li class="button_yuan button_margin2 ul_li"><div class="clearfix4"><span class="font_style1">次月开通</span><span class="adCol1">&nbsp;&nbsp;费用按您实际使用情况收取</span></div><div id="img2" class="img_gou_mar" style="display:none;"><img src="images/gou.png" alt="logo" class="img_gou"></div></li>
		</ul>
	</div>
	<!-- footers -->
	<div>
		<div class="footer_button3 obutton_ad3">
			<img src="images/icons_74.jpg" class="info_img"><div onClick="goto_next();" class="button_yuan button_margin footer_button obutton_ad4"><span class="fontc_adjust">下一步</span></div>
		</div>
	</div>
<!-- 导航栏 -->
	<!--<div class="AllNav">
		<div class="borRig" id="navBtn" onClick="funNav();">
			<img src="images/icons_19.png" class="navBtnImg">
		</div>
		<div class="borRig2">
			<ul class="button_yuan">
				<li class="Nav_li" onClick="window.open('phone_list.php?uid=1&type=0&ab=0','_self');"><img src="images/icons_03.png" alt="自制" class="NavImg1"><span class="diy_f1">DIY号码</span></li>
				<li class="Nav_li" onClick="window.open('hotnum.php?uid=1&type=4','_self');"><img src="images/icons_05.png" alt="热销" class="NavImg2"><span class="hot_f1">热销靓号</span></li>
				<li class="Nav_li" onClick="window.open('phone_list.php?uid=1&type=6&ab=0','_self');"><img src="images/icons_07.png" alt="情侣" class="NavImg3"><span class="lovers_f1">情侣号</span></li>
				<li class="Nav_li2" onClick="window.open('luckynum.php?uid=1&type=7','_self');"><img src="images/icons_09.png" alt="吉祥" class="NavImg4"><span class="lucky_f1">吉祥财富号</span></li>
			</ul>
		</div>
	</div>-->
<!-- 导航栏 -->
	<div class="allBottoms">
			&nbsp;
		</div>
	</div>
	<!-- 所有页面导航 -->
		<div class="footNav">
		<div class="footNav-s">
			<div class="footNav-div1">
				<div class="footNav-div1-d">
					<img src="img/qietu_36.png" class="footNav-div1-img"/>
				div>
			</div>
			<div class="footNav-div2">
				<div style="overflow:auto;">
				<!-- 左浮动 -->
				<a href="shoujiguan.php?uid=1&domain=itsabutterfly.com&appkey=">
				<div class="footNav-div2-dl">
					<div class="footNav-div2-dld">手机馆</div>
				</div>
				</a>
				<!-- 右浮动 -->
				<a href="javascript:void(0)">
				<div class="footNav-div2-dr">
					<div class="footNav-div2-drd">关注微信</div>
				</div>
				</a>
				<!-- 居中 -->
				<a href="shop.php?uid=1&domain=itsabutterfly.com&appkey=">
				<div class="footNav-div2-dm">
					<div class="footNav-div2-dmd">淘号吧</div>
				</div>
				</a>
				</div>
				<div class="LTDivLine"></div>
				<div class="unicomQQ">
					联通QQ:1031665132
				</div>
			</div>
			</div>
		</div>
<!-- 遮罩层或隐藏层 -->
	<div id="navWX-b" class="navWX-b"></div>
	<!-- 弹出层 -->
	<div id="navWX-w" class="navWX-w">
		<div class="navWX-wD">
			<div class="navWX-wD-d1">
				<img src="img/qietu_25.jpg" class="navWX-wD-d1-img"/>
			</div>
			<div class="navWXAdF">1，您可以扫上面的二维码 </div>
			<div class="navWXAdF">2，您也可以在微信内搜索"浙江联通网上商城"微信公众号，关注浙江联通微信，体验更多互动功能 </div>
		</div>
		<div class="navBtnQ">取消</div>
	</div>
</body>
</html>
<script type="text/javascript" src="js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="js/unicom.js" ></script>
<script type="text/javascript">
var g_bc = 1;//入网编号
$(function(){
	$('.content ul li').click(
	function(){
		var ind = $('.content ul li').index($(this));
		g_bc = ind;
		$('#img0').css('display','none');
		$('#img1').css('display','none');
		$('#img2').css('display','none');
		$('#img'+ind).css('display','');
	}
	);
});
//下一步
function goto_next()
{
	var type = 4;
	if($("#name").val() == "")
	{
		Uconfirm("请输入机主姓名");
		//$("#name").focus();
		return false;
	}
	if(escape($("#name").val()).indexOf("%u")<0 && $("#name").val().search(/[a-zA-Z]+/)==-1)
	{
		Uconfirm("请输入正确的机主姓名");
		//$("#name").focus();
		return false;
	}
	if($("#sfcode").val() == "")
	{
		Uconfirm("请输入机主身份证号");
		//$("#sfcode").focus();
		return false;
	}
	else
	{
		if($("#sfcode").val().length != 15 && $("#sfcode").val().length != 18)
		{
			Uconfirm("请输入正确的机主身份证号");
			//$("#sfcode").focus();
			return false;
		}
		for (i = 0; i < 17; ++i)
		{
			if ( $("#sfcode").val().substr(i,1) < '0' || $("#sfcode").val().substr(i,1) > '9' )
			{
				Uconfirm("请输入正确的机主身份证号");
				//$("#sfcode").focus();
				return false;
			}
		}
		if ( ($("#sfcode").val().substr(17,1) < '0' || $("#sfcode").val().substr(17,1) > '9') && $("#sfcode").val().substr(17,1) != 'X' && $("#sfcode").val().substr(17,1) != 'x' )
		{
			Uconfirm("请输入正确的机主身份证号");
			//$("#sfcode").focus();
			return false;
		}
	}
	if(type == 6)
	{
		if($("#name2").val() == "")
		{
			Uconfirm("请输入情侣姓名");
			//$("#name2").focus();
			return false;
		}
		if(escape($("#name2").val()).indexOf("%u")<0 && $("#name2").val().search(/[a-zA-Z]+/)==-1)
		{
			Uconfirm("请输入正确的情侣姓名");
			//$("#name2").focus();
			return false;
		}
		if($("#sfcode2").val() == "")
		{
			Uconfirm("请输入情侣身份证号");
			//$("#sfcode2").focus();
			return false;
		}
		else
		{
			if($("#sfcode2").val().length != 15 && $("#sfcode2").val().length != 18)
			{
				Uconfirm("请输入正确的情侣身份证号");
				//$("#sfcode2").focus();
				return false;
			}
			for (i = 0; i < 17; ++i)
			{
				if ( $("#sfcode2").val().substr(i,1) < '0' || $("#sfcode2").val().substr(i,1) > '9' )
				{
					Uconfirm("请输入正确的情侣身份证号");
					//$("#sfcode").focus();
					return false;
				}
			}
			if ( ($("#sfcode2").val().substr(17,1) < '0' || $("#sfcode2").val().substr(17,1) > '9') && $("#sfcode2").val().substr(17,1) != 'X' && $("#sfcode2").val().substr(17,1) != 'x' )
			{
				Uconfirm("请输入正确的情侣身份证号");
				//$("#sfcode").focus();
				return false;
			}
		}
	}
	location.href='info3.php?uid=1&pa='+<?php echo $pa;?>+'&coupon='+<?php echo $coupon;?>+'&phone_code=<?php echo $phone_code;?>&phone_code2=&type=4&uuid=<?php echo $uuid;?>&mobileId=<?php echo $mobileId;?>&area=<?php echo $area;?>&price='+8000+'&name='+$("#name").val()+'&sfcode='+$("#sfcode").val()+'&name2='+$("#name2").val()+'&sfcode2='+$("#sfcode2").val()+'&bc='+g_bc;
}
</script>